Skip to content

[GCSI-515] update fastlane build actions android/ios #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: GCSI-409
Choose a base branch
from

Conversation

Yousif-Ahmed
Copy link
Contributor

No description provided.

Copy link

@ahmedhany98 ahmedhany98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work ya Youssef 👏

]
build_keys.each do |build_key|
build_path = lane_context[build_key]
return build_path if build_path && !build_path.empty?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return build_path if build_path && !build_path.empty?
return build_path if build_path.present?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.present? requires active support and we don't have Rails here.
So, I will keep the current implementation.

Fix issues while testing + extract error message
Comment on lines 43 to 47
key = option.key
unless INSTABUG_KEYS.include?(key)
value = params[key]
filtered_config[key] = value if value
end

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
key = option.key
unless INSTABUG_KEYS.include?(key)
value = params[key]
filtered_config[key] = value if value
end
key = option.key
filtered_config[key] = params[key] unless INSTABUG_KEYS.include?(key)

I think the user can pass a key with value false which will be excluded from the if case

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Applied.

Comment on lines +159 to +164
build_keys = [
SharedValues::GRADLE_ALL_APK_OUTPUT_PATHS,
SharedValues::GRADLE_APK_OUTPUT_PATH,
SharedValues::GRADLE_ALL_AAB_OUTPUT_PATHS,
SharedValues::GRADLE_AAB_OUTPUT_PATH
]
Copy link

@ahmedhany98 ahmedhany98 Aug 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could return (array / string / nil).
And we should always send the build_path as an array to match the TDD.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Applied.

build_time = (Time.now - build_start_time).round

# Extract IPA path from Fastlane environment
build_path = Actions.lane_context[SharedValues::IPA_OUTPUT_PATH]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be an array instead of string.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Applied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants